import request from '@/router/axios';
import {
  fenExYuangettoFixed, getAppealTypes, getIs_sup_payment,
  getLineName, getMappingStatus,
  getNoticeStates,
  getStationName, is_sup_payment,
  allStatus, noticeStates, getMappingStatusArray
} from "../../../../subwayRat/commonCheck";

/**
 * 列表
 * @param query
 */
export function getSwAuStDiffNoticeList(query) {
  return request({
    url: '/check/checkNew/getSwAuStDiffNoticeList',
    method: 'post',
    params: query,
    data:query,
  })
}




export function get_xw_cz_otherYunYingZXDLCK_Option() {
  return {
    emptyBtn: false,
    editBtn: false,
    delBtn: false,
    addBtn: false,
    border: true,
    index: true,
    indexLabel: '序号',
    page: true,
    align: 'center',
    menuWidth: 150,
    menuAlign: 'center',
    selection: true,
    reserveSelection: false,
    height: 450,
    column: [{label: "线路", prop: "lineCode",search:true,searchslot:true,formatter: function(row, value , label, column){
        return getLineName(value);
      }},

      {label: "站点", prop: "stationCode",search:true,searchslot:true,formatter: function(row, value , label, column){
          return getStationName(row.lineCode,value);
        }},
      {label: "收入日期", prop: "incomeTime",type:'date',format:'yyyy-MM-dd',valueFormat:'yyyy-MM-dd',width:90},
      {label: "补款人", prop: "conductorPersonName",type:'select'},
      {label: "补款人员工号", prop: "conductorJobNo",width:95},
      {label: "差异金额", prop: "diffAmount",formatter:function (row,v) {
          return fenExYuangettoFixed(row,'diffAmount');
        }},

      {label: "申诉状态", prop: "appealState",dicData:allStatus['car_appeal_status'],formatter:function (row,v) {
          return getMappingStatus('car_appeal_status',v);
        }},
      {label: "是否补款",hide: true, prop: "suappStatus",type:'select',dicData:is_sup_payment(),formatter:function (row,v) {
          return getIs_sup_payment(v);
        }},
        {label: "下发时间", prop: "sendTime",type:'date',format:'yyyy-MM-dd HH:mm:ss',valueFormat:'yyyy-MM-dd HH:mm:ss',width:90},
      {label: "补款日期", hide: true,prop: "suappTime",type:'date',format:'yyyy-MM-dd',width:90},
      {label: "备注", prop: "remark",width:150},
    ]
  }
}
